package sample;


import javafx.embed.swing.SwingFXUtils;
import javafx.geometry.Insets;
import javafx.scene.canvas.Canvas;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;



import java.awt.image.BufferedImage;

public class FourthAnchorPane {

    public AnchorPane FourthAnchorPane() throws Exception{
        if(BeautyMain.themeURL==null||BeautyMain.themeURL==""){
            return new AnchorPane();
        }
        AnchorPane anchorPane = new AnchorPane();
        String relativePath = BeautyMain.themeURL+"\\wallpaper\\default_wallpaper.png";
        Canvas imageView =   BlackBorder.get9NewImageCanvas(relativePath,1080,1920);

        TopPart topPart = new TopPart();

        VBox centerBottom = new VBox();
        centerBottom.getChildren().addAll(CenterAndBottom());
        centerBottom.setPadding(new Insets(45,0,0,0));
//
        SetSize.SetWidthSize(centerBottom,480);

        anchorPane.getChildren().addAll(imageView,topPart.anchorPaneTopPart2(),centerBottom);

        return  anchorPane;

    }

    public VBox CenterAndBottom()throws Exception{
        VBox vBox = new VBox();
        SetSize.SetWidthSize(vBox,480);
        VBox vBox1 = new VBox();
        SetSize.SetWidthSize(vBox1,480);
        vBox1.getChildren().add(MenuAll());
        //vBox1.setMargin(MenuAll(),new Insets(200,0,0,0));
        vBox.getChildren().addAll(TimeMood(),MusicPlayer(),vBox1);
        vBox.setMargin(vBox1,new Insets(220,0,0,20));
        return vBox;
    }

    public VBox TimeMood()throws Exception{
        VBox vBox = new VBox();
        HBox bigTime = new HBox();
        String relativePath1 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\number_0.png";//参数是假的
        Canvas imageView1 =   BlackBorder.get9NewImageCanvas(relativePath1,98,150);
//        bigTime.getChildren().addAll(imageView1);
        String relativePath2 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\number_5.png";//参数是假的
        Canvas imageView2 =   BlackBorder.get9NewImageCanvas(relativePath2,98,150);

        String relativePath3 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\number_p.png";//参数是假的
        Canvas imageView3 =   BlackBorder.get9NewImageCanvas(relativePath3,46,150);

        String relativePath4 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\number_2.png";//参数是假的
        Canvas imageView4 =   BlackBorder.get9NewImageCanvas(relativePath4,98,150);

        String relativePath5 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\number_0.png";//参数是假的
        Canvas imageView5 =   BlackBorder.get9NewImageCanvas(relativePath5,98,150);

        bigTime.setMargin(imageView1,new Insets(0,0,0,25));
        bigTime.setMargin(imageView2,new Insets(0,0,0,-50));
        bigTime.setMargin(imageView3,new Insets(0,0,0,-60));
        bigTime.setMargin(imageView4,new Insets(0,0,0,-30));
        bigTime.setMargin(imageView5,new Insets(0,0,0,-55));
        // bigTime.setStyle("-fx-background-color: red");

        SetSize.SetHightSize(bigTime,67);
        Label label = new Label();
        label.setText("抒写心情");

        Font font = new Font("微软雅黑",38);
        label.setFont(font);
        String url = BeautyMain.themeURL+"\\com.vivo.dream.music\\theme_values.xml";
        String param = "dream_music_song_name";
        String colorFont =   DOM4JTest.attrValue(url,param);
        label.setTextFill(Color.web("rgba("+colorFont+")"));


        bigTime.getChildren().addAll(imageView1,imageView2,imageView3,imageView4,imageView5,label);
        bigTime.setMargin(label,new Insets(10,0,0,0));
        HBox smallTime = new HBox();

        SetSize.SetElementSize(smallTime,440,32);

        AnchorPane anchorPane = new AnchorPane();

        SetSize.SetWidthSize(anchorPane,440);
        String relativePath6 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\data_bg.png";//参数是假的
        Canvas imageView6 =   BlackBorder.get9NewImageCanvas(relativePath6,995,72);



        String relativePath7 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\editor_normal.png";//参数是假的
        Canvas imageView7 =   BlackBorder.get9NewImageCanvas(relativePath7,110,72);
        VBox edit = new VBox();
        edit.getChildren().addAll(imageView7);
        SetSize.SetElementSize(edit,48,32);


        edit.setMargin(imageView7,new Insets(0,0,0,395));

        String url1 = BeautyMain.themeURL+"\\com.vivo.dream.clock\\theme_values.xml";
        String param1= "dream_clock_date";
        String colorFont1 =   DOM4JTest.attrValue(url1,param1);
        Font font1 = new Font("微软雅黑",15);

        Label label1 = new Label();
        label1.setText("2018年2月23日");
        label1.setTextFill(Color.web("rgba("+colorFont1+")"));
        label1.setPadding(new Insets(7,0,0,30));
        label1.setFont(font1);
        Label label2 = new Label();
        label2.setText("星期五");
        label2.setTextFill(Color.web("rgba("+colorFont1+")"));
        label2.setFont(font1);
        label2.setPadding(new Insets(7,0,0,155));
        anchorPane.getChildren().addAll(imageView6,label1,label2,edit);
//        edit.setStyle("-fx-background-color: green");
        //smallTime.setStyle("-fx-background-color: blue");
        smallTime.getChildren().addAll(anchorPane);

        vBox.setMargin(smallTime,new Insets(0,0,0,20));
        vBox.getChildren().addAll(bigTime,smallTime);

        SetSize.SetWidthSize(vBox,480);

        return vBox;
    }

    public VBox MusicPlayer()throws Exception{
        VBox vBox = new VBox();
        SetSize.SetWidthSize(vBox,480);


        AnchorPane anchorPane = new AnchorPane();
        Font font = new Font("微软雅黑",16);
        HBox upperPart = new HBox();
        Label label = new Label();
        label.setText("歌曲名");
        label.setFont(font);
        String url = BeautyMain.themeURL+"\\com.vivo.dream.music\\theme_values.xml";
        String param = "dream_music_song_name";
        String colorFont =   DOM4JTest.attrValue(url,param);
        label.setTextFill(Color.web("rgba("+colorFont+")"));

        Label label2 = new Label();
        label2.setText("歌手名");
        label2.setFont(font);
        String url2 = BeautyMain.themeURL+"\\com.vivo.dream.music\\theme_values.xml";
        String param2 = "dream_music_artist";
        String colorFont2 =   DOM4JTest.attrValue(url2,param2);
        label2.setTextFill(Color.web("rgba("+colorFont2+")"));

        upperPart.getChildren().addAll(label,label2);
        upperPart.setMargin(label,new Insets(2,0,0,150));
        upperPart.setMargin(label2,new Insets(2,0,0,115));
        //upperPart.setStyle("-fx-background-color: green");

        HBox downPart = new HBox();
        //downPart.setStyle("-fx-background-color: red");
        AnchorPane anchorPane1 = new AnchorPane();
        String relativePath1 = BeautyMain.themeURL+"\\com.vivo.dream.music\\panel_cd.png";//参数是假的
        Canvas imageView1 =   BlackBorder.get9NewImageCanvas(relativePath1,995,250);
        HBox background = new HBox();
        //background.setStyle("-fx-background-color: blue");
        SetSize.SetElementSize(background,480,111);

        background.setMargin(imageView1,new Insets(-5,0,0,20));

        String relativePath2 = BeautyMain.themeURL+"\\com.vivo.dream.music\\btn_prev_normal.png";//参数是假的
        Canvas imageView2 =   BlackBorder.get9NewImageCanvas(relativePath2,148,148);
        VBox theLeft = new VBox();
        SetSize.SetElementSize(theLeft,70,70);
        theLeft.getChildren().addAll(imageView2);

        VBox suspend = new VBox();
        String relativePath3 = BeautyMain.themeURL+"\\com.vivo.dream.music\\btn_play_normal.png";//参数是假的
        Canvas imageView3 =   BlackBorder.get9NewImageCanvas(relativePath3,148,148);
        suspend.getChildren().addAll(imageView3);
        SetSize.SetElementSize(suspend,70,70);

        VBox theRight = new VBox();
        String relativePath4 = BeautyMain.themeURL+"\\com.vivo.dream.music\\btn_next_normal.png";//参数是假的
        Canvas imageView4 =   BlackBorder.get9NewImageCanvas(relativePath4,148,148);
        theRight.getChildren().addAll(imageView4);
        SetSize.SetElementSize(theRight,70,70);
        HBox musicPlay = new HBox();
        musicPlay.getChildren().addAll(theLeft,suspend,theRight);
        musicPlay.setPadding(new Insets(40,0,0,175));
        musicPlay.setMargin(suspend,new Insets(0,0,0,18));
        musicPlay.setMargin(theRight,new Insets(0,0,0,18));

        VBox picHead = new VBox();
        VBox maskVBox = new VBox();
        AnchorPane maskAnchorPane = new AnchorPane();
        String maskRel = BeautyMain.themeURL+"\\com.vivo.dream.music\\cd_cover.png";//参数是假的
        Canvas maskCanvas =   BlackBorder.get9NewImageCanvas(maskRel,236,236);
        VBox canVBox = new VBox();
        canVBox.getChildren().addAll(maskCanvas);
        canVBox.setPadding(new Insets(-5,0,0,40));
        MaskImage maskImage = new MaskImage();
        String maskUrl = BeautyMain.themeURL+"\\com.vivo.dream.music\\cd_mix.png";
        String sourceUrl = BeautyMain.themeURL+"\\com.vivo.dream.music\\album_photo_def.png";
        BufferedImage bufferedImage =  maskImage.maskImage(maskUrl,sourceUrl,236,236);
        WritableImage writableImage = SwingFXUtils.toFXImage(bufferedImage, new WritableImage(bufferedImage.getWidth(), bufferedImage.getHeight()));
        ImageView maskImV = new ImageView();
        maskImV.setFitWidth(105);
        maskImV.setFitHeight(105);
        maskVBox.getChildren().addAll(maskImV);
        maskImV.setImage(writableImage);
        maskVBox.setPadding(new Insets(-5,0,0,40));
        //maskVBox.setStyle("-fx-background-color: red");
        maskAnchorPane.getChildren().addAll(canVBox,maskVBox);
        picHead.getChildren().addAll(maskAnchorPane);
        //picHead.setStyle("-fx-background-color: green");
        SetSize.SetElementSize(picHead,120,110);

        background.getChildren().addAll(imageView1);
        anchorPane1.getChildren().addAll(background,musicPlay,picHead,upperPart);
        downPart.getChildren().addAll(anchorPane1);
        // upperPart.setStyle("-fx-background-color: red");
        //downPart.setStyle("-fx-background-color: green");
        //downPart.setStyle("-fx-background-color: red");
        //upperPart.setStyle("-fx-background-color: blue");
        anchorPane.getChildren().addAll(downPart);

        vBox.getChildren().addAll(anchorPane);
        return vBox;
    }

    public VBox MenuAll()throws Exception{
        VBox vBox = new VBox();
        vBox.getChildren().addAll(Menu1(),Menu2(),Menu3());


        SetSize.SetWidthSize(vBox,480);
//        vBox.setStyle("-fx-background-color: red");
        return vBox;

    }

    public VBox Menu1()throws Exception{

        VBox vBox = new VBox();
        HBox hBox = new HBox();
        HBox hBox1 = new HBox();
        Font font = new Font("微软雅黑",17);
        /**
         * 时钟闹钟
         */
        String relativePath1 = BeautyMain.themeURL+"\\icons\\com.android.BBKClock.png";//参数是假的
        Canvas imageView1 =   BlackBorder.get9NewImageCanvas(relativePath1,185,185);
        VBox right = new VBox();

        Label label1 = new Label();
        label1.setText("时钟闹钟");
        label1.setFont(font);
        String url1 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param1 = "icon_title_color";
        String colorFont1 =   DOM4JTest.attrValue(url1,param1);
        label1.setTextFill(Color.web("rgba("+colorFont1+")"));
        right.getChildren().addAll(imageView1);
        SetSize.SetElementSize(right,92,92);

        /**
         * 文件管理
         */
        String relativePath2 = BeautyMain.themeURL+"\\icons\\com.android.filemanager.png";//参数是假的
        Canvas imageView2 =   BlackBorder.get9NewImageCanvas(relativePath2,185,185);
        VBox folder = new VBox();
        folder.getChildren().addAll(imageView2);
        SetSize.SetElementSize(folder,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label2 = new Label();
        label2.setText("文件管理");
        label2.setFont(font);
        String url2 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param2 = "icon_title_color";
        String colorFont2 =   DOM4JTest.attrValue(url2,param2);
        label2.setTextFill(Color.web("rgba("+colorFont2+")"));

        /**
         * 相册
         */
        String relativePath3 = BeautyMain.themeURL+"\\icons\\com.vivo.gallery.png";//参数是假的
        Canvas imageView3 =   BlackBorder.get9NewImageCanvas(relativePath3,185,185);
        VBox photoAlbum = new VBox();
        photoAlbum.getChildren().addAll(imageView3);
        SetSize.SetElementSize(photoAlbum,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label3 = new Label();
        label3.setText("相册");
        label3.setFont(font);
        String url3 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param3 = "icon_title_color";
        String colorFont3 =   DOM4JTest.attrValue(url3,param3);
        label3.setTextFill(Color.web("rgba("+colorFont3+")"));

        /**
         * 音乐
         */
        String relativePath4 = BeautyMain.themeURL+"\\icons\\com.vivo.gallery.png";//参数是假的
        Canvas imageView4 =   BlackBorder.get9NewImageCanvas(relativePath4,185,185);
        VBox music = new VBox();
        music.getChildren().addAll(imageView4);
        SetSize.SetElementSize(music,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label4 = new Label();
        label4.setText("i音乐");
        label4.setFont(font);
        String url4 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param4 = "icon_title_color";
        String colorFont4 =   DOM4JTest.attrValue(url4,param4);
        label4.setTextFill(Color.web("rgba("+colorFont4+")"));


//        right.setStyle("-fx-background-color: blue");
        hBox1.getChildren().addAll(label1,label2,label3,label4);
        hBox.getChildren().addAll(right,folder,photoAlbum,music);
        hBox.setMargin(folder,new Insets(0,0,0,28));
        hBox.setMargin(photoAlbum,new Insets(0,0,0,23));
        hBox.setMargin(music,new Insets(0,0,0,28));
        hBox1.setMargin(label1,new Insets(-6,0,0,13));
        hBox1.setMargin(label2,new Insets(-6,0,0,43));
        hBox1.setMargin(label3,new Insets(-6,0,0,65));
        hBox1.setMargin(label4,new Insets(-6,0,0,90));



        // hBox1.setMargin(label1,new Insets(0,0,0,0));
        vBox.getChildren().addAll(hBox,hBox1);
        SetSize.SetWidthSize(vBox,460);
        // vBox.setStyle("-fx-background-color: green");
        return vBox;

    }


    public VBox Menu2()throws Exception{

        VBox vBox = new VBox();
        HBox hBox = new HBox();
        HBox hBox1 = new HBox();
        Font font = new Font("微软雅黑",17);
        /**
         * 录音机
         */
        String relativePath1 = BeautyMain.themeURL+"\\icons\\com.android.bbksoundrecorder.png";//参数是假的
        Canvas imageView1 =   BlackBorder.get9NewImageCanvas(relativePath1,185,185);
        VBox right = new VBox();

        Label label1 = new Label();
        label1.setText("录音机");
        label1.setFont(font);
        String url1 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param1 = "icon_title_color";
        String colorFont1 =   DOM4JTest.attrValue(url1,param1);
        label1.setTextFill(Color.web("rgba("+colorFont1+")"));
        right.getChildren().addAll(imageView1);
        SetSize.SetElementSize(right,92,92);

        /**
         * 日历
         */
        String relativePath2 = BeautyMain.themeURL+"\\icons\\com.bbk.calendar.png";//参数是假的
        Canvas imageView2 =   BlackBorder.get9NewImageCanvas(relativePath2,185,185);
        VBox folder = new VBox();
        folder.getChildren().addAll(imageView2);
        SetSize.SetElementSize(folder,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label2 = new Label();
        label2.setText("日历");
        label2.setFont(font);
        String url2 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param2 = "icon_title_color";
        String colorFont2 =   DOM4JTest.attrValue(url2,param2);
        label2.setTextFill(Color.web("rgba("+colorFont2+")"));

        /**
         * 视频
         */
        String relativePath3 = BeautyMain.themeURL+"\\icons\\com.android.VideoPlayer.png";//参数是假的
        Canvas imageView3 =   BlackBorder.get9NewImageCanvas(relativePath3,185,185);
        VBox photoAlbum = new VBox();
        photoAlbum.getChildren().addAll(imageView3);
        SetSize.SetElementSize(photoAlbum,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label3 = new Label();
        label3.setText("视频");
        label3.setFont(font);
        String url3 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param3 = "icon_title_color";
        String colorFont3 =   DOM4JTest.attrValue(url3,param3);
        label3.setTextFill(Color.web("rgba("+colorFont3+")"));

        /**
         * i主题
         */
        String relativePath4 = BeautyMain.themeURL+"\\icons\\com.bbk.theme.png";//参数是假的
        Canvas imageView4 =   BlackBorder.get9NewImageCanvas(relativePath4,185,185);
        VBox music = new VBox();
        music.getChildren().addAll(imageView4);
        SetSize.SetElementSize(music,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label4 = new Label();
        label4.setText("i主题");
        label4.setFont(font);
        String url4 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param4 = "icon_title_color";
        String colorFont4 =   DOM4JTest.attrValue(url4,param4);
        label4.setTextFill(Color.web("rgba("+colorFont4+")"));


//        right.setStyle("-fx-background-color: blue");
        hBox1.getChildren().addAll(label1,label2,label3,label4);
        hBox.getChildren().addAll(right,folder,photoAlbum,music);
        hBox.setMargin(folder,new Insets(0,0,0,28));
        hBox.setMargin(photoAlbum,new Insets(0,0,0,23));
        hBox.setMargin(music,new Insets(0,0,0,28));
        hBox1.setMargin(label1,new Insets(-6,0,0,18));
        hBox1.setMargin(label2,new Insets(-6,0,0,75));
        hBox1.setMargin(label3,new Insets(-6,0,0,80));
        hBox1.setMargin(label4,new Insets(-6,0,0,85));

        vBox.setMargin(hBox,new Insets(5,0,0,0));
        // vBox.setMargin(hBox1,new Insets(5,0,0,0));

        // hBox1.setMargin(label1,new Insets(0,0,0,0));
        vBox.getChildren().addAll(hBox,hBox1);
        SetSize.SetWidthSize(vBox,460);
        //vBox.setStyle("-fx-background-color: blue");
        return vBox;

    }

    public VBox Menu3()throws Exception{

        VBox vBox = new VBox();
        HBox hBox = new HBox();
        HBox hBox1 = new HBox();
        Font font = new Font("微软雅黑",17);
        /**
         * 电话
         */
        String relativePath1 = BeautyMain.themeURL+"\\icons\\com.android.dialer.png";//参数是假的
        Canvas imageView1 =   BlackBorder.get9NewImageCanvas(relativePath1,185,185);
        VBox right = new VBox();

        Label label1 = new Label();
        label1.setText("电话");
        label1.setFont(font);
        String url1 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param1 = "icon_title_color";
        String colorFont1 =   DOM4JTest.attrValue(url1,param1);
        label1.setTextFill(Color.web("rgba("+colorFont1+")"));
        right.getChildren().addAll(imageView1);
        SetSize.SetElementSize(right,92,92);

        /**
         * 联系人
         */
        String relativePath2 = BeautyMain.themeURL+"\\icons\\com.android.contacts.png";//参数是假的
        Canvas imageView2 =   BlackBorder.get9NewImageCanvas(relativePath2,185,185);
        VBox folder = new VBox();
        folder.getChildren().addAll(imageView2);
        SetSize.SetElementSize(folder,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label2 = new Label();
        label2.setText("联系人");
        label2.setFont(font);
        String url2 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param2 = "icon_title_color";
        String colorFont2 =   DOM4JTest.attrValue(url2,param2);
        label2.setTextFill(Color.web("rgba("+colorFont2+")"));

        /**
         * 信息
         */
        String relativePath3 = BeautyMain.themeURL+"\\icons\\com.android.mms.png";//参数是假的
        Canvas imageView3 =   BlackBorder.get9NewImageCanvas(relativePath3,185,185);
        VBox photoAlbum = new VBox();
        photoAlbum.getChildren().addAll(imageView3);
        SetSize.SetElementSize(photoAlbum,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label3 = new Label();
        label3.setText("信息");
        label3.setFont(font);
        String url3 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param3 = "icon_title_color";
        String colorFont3 =   DOM4JTest.attrValue(url3,param3);
        label3.setTextFill(Color.web("rgba("+colorFont3+")"));

        /**
         * 相机
         */
        String relativePath4 = BeautyMain.themeURL+"\\icons\\com.android.camera.png";//参数是假的
        Canvas imageView4 =   BlackBorder.get9NewImageCanvas(relativePath4,185,185);
        VBox music = new VBox();
        music.getChildren().addAll(imageView4);
        SetSize.SetElementSize(music,92,92);

        //Font font = new Font("微软雅黑",17);
        Label label4 = new Label();
        label4.setText("相机");
        label4.setFont(font);
        String url4 = BeautyMain.themeURL+"\\com.bbk.launcher2\\theme_values.xml";
        String param4 = "icon_title_color";
        String colorFont4 =   DOM4JTest.attrValue(url4,param4);
        label4.setTextFill(Color.web("rgba("+colorFont4+")"));


//        right.setStyle("-fx-background-color: blue");
        hBox1.getChildren().addAll(label1,label2,label3,label4);
        hBox.getChildren().addAll(right,folder,photoAlbum,music);
        hBox.setMargin(folder,new Insets(0,0,0,28));
        hBox.setMargin(photoAlbum,new Insets(0,0,0,23));
        hBox.setMargin(music,new Insets(0,0,0,28));
        hBox1.setMargin(label1,new Insets(-6,0,0,24));
        hBox1.setMargin(label2,new Insets(-6,0,0,80));
        hBox1.setMargin(label3,new Insets(-6,0,0,70));
        hBox1.setMargin(label4,new Insets(-6,0,0,90));

        vBox.setMargin(hBox,new Insets(50,0,0,0));
        vBox.setMargin(hBox1,new Insets(-5,0,0,0));

        // hBox1.setMargin(label1,new Insets(0,0,0,0));
        vBox.getChildren().addAll(hBox,hBox1);
        SetSize.SetWidthSize(vBox,460);
        //vBox.setStyle("-fx-background-color: red");
        return vBox;

    }

}
